FROM python:latest
# mcr.microsoft.com/devcontainers/base:ubuntu
# Install the xz-utils package
# RUN apt-get update && apt-get upgrade && apt-get install -y xz-utils && apt-get install -y python3 && apt-get install -y python3-pip
# RUN python -m pip install --upgrade pip

# mcr.microsoft.com/devcontainers/base:ubuntu
# Install the xz-utils package
# RUN apt-get update && apt-get upgrade && apt-get install -y xz-utils && apt-get install -y python3 && apt-get install -y python3-pip
RUN  python -m pip install --upgrade pip -i https://pypi.douban.com/simple
# docker run -d --restart=always  --name=master -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql
# ../env/bin/python manage.py makemigrations
# ../env/bin/python manage.py migrate
#  ../env/bin/pip install django && # ../env/bin/pip install djangorestframework && pip install pymysql
# ../env/bin/python manage.py makemigrations books
# ../env/bin/python manage.py migrate books
# pip config set global.index-url https://mirrors.aliyun.com/pypi/simple 
# pip config set install.trusted-host mirrors.aliyun.com
